#pragma once

#include <QDialog>
#include "ui_PropertyDlg.h"
#include <QVariantMap>
class QStandardItemModel;
class QStandardItem;

class PropertyDlg : public QDialog
{
	Q_OBJECT

public:
	PropertyDlg(QWidget *parent = nullptr);
	~PropertyDlg();
	
	void setVariantMap(QVariantMap variantMap);
	QVariantMap getVariantMap();

	void paintEvent(QPaintEvent *event) override;

private slots:
	void onItemChange(QStandardItem* item);

private:
	Ui::PropertyDlgClass ui;

	QVariantMap m_variantMap;
	QStandardItemModel* m_model;
};
